@Library('shared-library') _

pipeline {
    agent any
    stages {
        stage('初始化') {
            steps {
                script{
                    runWrapper.loadJSON('/json/json-structure.json')
                    runWrapper.runSteps('初始化')
                }
            }
        }
        stage('代码检查') {
            steps {
                script{
                    runWrapper.runSteps('代码检查')
                }
            }
        }
        stage('单元测试') {
            steps {
                script{
                    runWrapper.runSteps('单元测试')
                }
            }
        }
        stage('编译构建') {
            steps {
                script{
                    runWrapper.runSteps('编译构建')
                }
            }
        }
        stage('部署') {
            steps {
                script{
                    runWrapper.runSteps('部署')
                }
            }
        }
    }
}